package config;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

@Configuration
@ComponentScan(basePackages = {"service", "aop"}) // 扫描业务类和切面类所在的包
@EnableAspectJAutoProxy // 启用AOP自动代理
public class AppConfig {
}